// pages/order-details/orderdetails.js
const { httpGet } = require('../../utils/util.js')
const util = require('../../utils/util.js')
const app = getApp() // 获取app.js
Page({
  data: {
    products: [],
    total: 0,
  },
  onLoad: function (e) {
    // this.data.orderId = e.id
    util.httpGet('/wx/orderProduct?oid='+e.id, resp=>{
      this.data.products = resp.product
      // util.alert(e.id)
      this.setData(this.data)
    })
    this.data.total = e.total
    this.setData(this.data)
  }

})